/* Copyright (C) 2008 Robin Debreuil -- Released under the BSD License */

using System;
using System.Collections.Generic;
using System.CodeDom.Compiler;
using System.Text;

namespace SWF
{
	public class ExportAssetsTag : ISwfTag
	{
		public const TagType tagType = TagType.ExportAssets;
		public TagType TagType { get { return tagType; } }

		public Dictionary<uint, string> Exports = new Dictionary<uint, string>();

		public ExportAssetsTag(SwfReader r)
		{
			uint count = r.GetUI16();
			for (int i = 0; i < count; i++)
			{
				uint index = r.GetUI16();
				string name = r.GetString();
				Exports.Add(index, name);
			}
		}
	}
}
